﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Sign of multiplication</title>
    <link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
    <div id="js-console"></div>
	<script src="scripts/js-console.js"></script>

    <script>
        var firstNumber = -5;
        var secondNumber = 3;
        var thirdNumber =-2;
        var firstPositiveCombination=(firstNumber>0 && secondNumber>0 && thirdNumber>0);
        var secondPositiveCombination=(firstNumber<0 && secondNumber<0 && thirdNumber>0);
        var thirdPositiveCombination=(firstNumber<0 && secondNumber>0 && thirdNumber<0);
        var forthPositiveCombination=(firstNumber>0 && secondNumber<0 && thirdNumber<0);
        var firstNegativeCombination=(firstNumber>0 && secondNumber<0 && thirdNumber>0);
        var secondNegativeCombination=(firstNumber<0 && secondNumber>0 && thirdNumber>0);
        var thirdNegativeCombination=(firstNumber>0 && secondNumber>0 && thirdNumber<0);
        var forthNegativeCombination=(firstNumber<0 && secondNumber<0 && thirdNumber<0);

        if (firstPositiveCombination || secondPositiveCombination || thirdPositiveCombination || forthPositiveCombination) {
            jsConsole.writeLine("The the sign of the product is + .");
        }
        else if (firstNegativeCombination || secondNegativeCombination || thirdNegativeCombination || forthNegativeCombination) {
            jsConsole.writeLine("The sign of the product is - .");
        }

    </script>
</body>
</html>
